/*
 * ShareAreaResultBO.java 
 * 
 * Copyright 2009 Wangfeng Beijing Inc. 
 * All rights reserved. 
 * 
 * Created on 2012-07-11
 */

package com.bjtech.domain;

import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.Date;

import org.ssi.web.struts.bean.BaseBean;

/**
 * 功能概述:分摊域分摊结果 <br>
 * 
 * @author 王峰
 */

public class ShareAreaResult extends BaseBean {
	/* */
	private Long id;
	/* */
	private Long area_id;
	/* */
	private String share_name;
	/* */
	private Date start_date;
	/* */
	private Date end_date;
	/* */
	private BigDecimal base_price;
	/* */
	private BigDecimal cal_price;

	private Long cal_unit;
	/* */
	private BigDecimal price_area;
	/* */
	private Long sum_user;
	/* */
	private BigDecimal sum_area;
	/* */
	private Long sum_other_user;
	/* */
	private BigDecimal sum_other_area;
	/* */
	private BigDecimal sum_heat;
	/* */
	private BigDecimal sum_base_money;
	/* */
	private BigDecimal sum_cal_money;
	/* */
	private BigDecimal sum_heat_money;
	/* */
	private BigDecimal sum_other_heat_money;
	/* */
	private BigDecimal sum_share_money;
	/* */
	private Long sum_sink_weight;
	private String sum_sink_weight_str;
	/* */
	private BigDecimal per_weight_price;
	/* */
	private Long share_meter_num;
	/* */
	private Long sink_num;
	/* */
	private BigDecimal avg_heat_target;
	/* */
	private Long share_type;
	/* */
	private String share_man;
	/* */
	private Date share_date;
	/* */
	private String demo;

	private String area_name;

	private BigDecimal cal_price_mwh;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getArea_id() {
		return this.area_id;
	}

	public void setArea_id(Long area_id) {
		this.area_id = area_id;
	}

	public String getShare_name() {
		return this.share_name;
	}

	public void setShare_name(String share_name) {
		this.share_name = share_name;
	}

	public Date getStart_date() {
		return this.start_date;
	}

	public void setStart_date(Date start_date) {
		this.start_date = start_date;
	}

	public Date getEnd_date() {
		return this.end_date;
	}

	public void setEnd_date(Date end_date) {
		this.end_date = end_date;
	}

	public BigDecimal getBase_price() {
		return this.base_price.setScale(3, BigDecimal.ROUND_HALF_UP);
	}

	public void setBase_price(BigDecimal base_price) {
		this.base_price = base_price;
	}

	public BigDecimal getCal_price() {
		return this.cal_price;
	}

	public void changeCal_price(BigDecimal cal_price, Long cal_unit) {
		if (cal_unit != null) {
			switch (cal_unit.intValue()) {
			case 1:
				this.cal_price = cal_price.multiply(new BigDecimal(1000));
				break;
			case 2:
				this.cal_price = cal_price;
				break;
			case 3:
				this.cal_price = cal_price.divide(new BigDecimal(0.0036));
				break;
			default:
				this.cal_price = new BigDecimal(0);
			}
		}
		this.cal_price = cal_price;
	}

	public BigDecimal getPrice_area() {
		return this.price_area;
	}

	public void setPrice_area(BigDecimal price_area) {
		this.price_area = price_area;
	}

	public Long getSum_user() {
		return this.sum_user;
	}

	public void setSum_user(Long sum_user) {
		this.sum_user = sum_user;
	}

	public BigDecimal getSum_area() {
		return this.sum_area;
	}

	public void setSum_area(BigDecimal sum_area) {
		this.sum_area = sum_area;
	}

	public Long getSum_other_user() {
		return this.sum_other_user;
	}

	public void setSum_other_user(Long sum_other_user) {
		this.sum_other_user = sum_other_user;
	}

	public BigDecimal getSum_other_area() {
		return this.sum_other_area;
	}

	public void setSum_other_area(BigDecimal sum_other_area) {
		this.sum_other_area = sum_other_area;
	}

	public BigDecimal getSum_heat() {
		return this.sum_heat;
	}

	public void setSum_heat(BigDecimal sum_heat) {
		this.sum_heat = sum_heat;
	}

	public BigDecimal getSum_base_money() {
		return this.sum_base_money.setScale(2, BigDecimal.ROUND_HALF_UP);
	}

	public void setSum_base_money(BigDecimal sum_base_money) {
		this.sum_base_money = sum_base_money;
	}

	public BigDecimal getSum_cal_money() {
		return this.sum_cal_money.setScale(2, BigDecimal.ROUND_HALF_UP);
	}

	public void setSum_cal_money(BigDecimal sum_cal_money) {
		this.sum_cal_money = sum_cal_money;
	}

	public BigDecimal getSum_heat_money() {
		return this.sum_heat_money.setScale(2, BigDecimal.ROUND_HALF_UP);
	}

	public void setSum_heat_money(BigDecimal sum_heat_money) {
		this.sum_heat_money = sum_heat_money;
	}

	public BigDecimal getSum_other_heat_money() {
		return this.sum_other_heat_money.setScale(2, BigDecimal.ROUND_HALF_UP);
	}

	public void setSum_other_heat_money(BigDecimal sum_other_heat_money) {
		this.sum_other_heat_money = sum_other_heat_money;
	}

	public BigDecimal getSum_share_money() {
		return this.sum_share_money.setScale(2, BigDecimal.ROUND_HALF_UP);
	}

	public void setSum_share_money(BigDecimal sum_share_money) {
		this.sum_share_money = sum_share_money;
	}

	public Long getSum_sink_weight() {
		return this.sum_sink_weight;
	}

	public void setSum_sink_weight(Long sum_sink_weight) {
		this.sum_sink_weight = sum_sink_weight;
	}

	public BigDecimal getPer_weight_price() {
		return this.per_weight_price;
	}

	public void setPer_weight_price(BigDecimal per_weight_price) {
		this.per_weight_price = per_weight_price;
	}

	public Long getShare_meter_num() {
		return this.share_meter_num;
	}

	public void setShare_meter_num(Long share_meter_num) {
		this.share_meter_num = share_meter_num;
	}

	public Long getSink_num() {
		return this.sink_num;
	}

	public void setSink_num(Long sink_num) {
		this.sink_num = sink_num;
	}

	public BigDecimal getAvg_heat_target() {
		return this.avg_heat_target;
	}

	public void setAvg_heat_target(BigDecimal avg_heat_target) {
		this.avg_heat_target = avg_heat_target;
	}

	public Long getShare_type() {
		return this.share_type;
	}

	public void setShare_type(Long share_type) {
		this.share_type = share_type;
	}

	public String getShare_man() {
		return this.share_man;
	}

	public void setShare_man(String share_man) {
		this.share_man = share_man;
	}

	public Date getShare_date() {
		return this.share_date;
	}

	public void setShare_date(Date share_date) {
		this.share_date = share_date;
	}

	public String getDemo() {
		return this.demo;
	}

	public void setDemo(String demo) {
		this.demo = demo;
	}

	public String getArea_name() {
		return area_name;
	}

	public void setArea_name(String areaName) {
		area_name = areaName;
	}

	public Long getCal_unit() {
		return cal_unit;
	}

	public void setCal_unit(Long calUnit) {
		cal_unit = calUnit;
	}

	public void setCal_price(BigDecimal calPrice) {
		cal_price = calPrice;
	}

	public BigDecimal getCal_price_mwh() {
		return cal_price_mwh;
	}

	public void setCal_price_mwh(BigDecimal calPriceMwh) {
		cal_price_mwh = calPriceMwh;
	}

	public String getSum_sink_weight_str() {
		DecimalFormat df = new DecimalFormat("#,##0");
		return df.format(sum_sink_weight);
	}

	public void setSum_sink_weight_str(String sumSinkWeightStr) {
		sum_sink_weight_str = sumSinkWeightStr;
	}
}
